<template>
  <iframe 
    src="http://localhost:8080/#/render-view" 
    frameborder="0"
    class="container"
  ></iframe>
</template>

<script>
export default {
  mounted() {
    window.addEventListener('message', (event) => {
      // const base = this.$route.path.split('/')[1];
      // const path = '/' + base + '/' + event.data
      // console.log(this.$route);
      this.$router.push({name: event.data})
      console.log(this.$router);
    }, false);
  }
}
</script>

<style scoped>
.container {
  width: 100%;
  height: calc(100vh - 100px);
}
</style>